package com.tsmti.business.entity;

import com.tsmti.core.common.entity.BaseDataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Where;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * @Package：com.tsmti.business.entity
 * @Class：PimsSysReportDelay
 * @Description： TODO
 * @Author：king
 * @Date：Created in 2018/11/12 10:07
 * @Company:
 * @Version：
 * @Modified By:
 */
@Entity
@Table(name = "PIMS_SYS_REPORT_DELAY")
@DynamicInsert
@DynamicUpdate
@Where(clause = "delFlag = 0")
public class PimsSysReportDelay extends BaseDataEntity<Long> {
    /**
     * id
     */
    private Long id;
    /**
     * 病种ID
     */
    private Long delPathologyId;
    /**
     * 是否开启标本大小判定
     */
    private Long isSampleSize;
    /**
     * 标准报告时间
     */
    private String delDays;
    /**
     * 小标本时间
     */
    private String smallSizeDays;
    /**
     * 大标本时间
     */
    private String bigSizeDays;

    @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_SYS_REPORT_DELAY")
    @SequenceGenerator(name = "SEQ_SYS_REPORT_DELAY", sequenceName = "SEQ_SYS_REPORT_DELAY", allocationSize = 1)
    @Override
    public Long getId() {
        return id;
    }
    @Override
    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "DELPATHOLOGYID")
    public Long getDelPathologyId() {
        return delPathologyId;
    }

    public void setDelPathologyId(Long delPathologyId) {
        this.delPathologyId = delPathologyId;
    }

    @Basic
    @Column(name = "ISSAMPLESIZE")
    public Long getIsSampleSize() {
        return isSampleSize;
    }

    public void setIsSampleSize(Long isSampleSize) {
        this.isSampleSize = isSampleSize;
    }

    @Basic
    @Column(name = "DELDAYS")
    public String getDelDays() {
        return delDays;
    }

    public void setDelDays(String delDays) {
        this.delDays = delDays;
    }

    @Basic
    @Column(name = "SMALLSIZEDAYS")
    public String getSmallSizeDays() {
        return smallSizeDays;
    }

    public void setSmallSizeDays(String smallSizeDays) {
        this.smallSizeDays = smallSizeDays;
    }

    @Basic
    @Column(name = "BIGSIZEDAYS")
    public String getBigSizeDays() {
        return bigSizeDays;
    }

    public void setBigSizeDays(String bigSizeDays) {
        this.bigSizeDays = bigSizeDays;
    }
}
